<?php
class header {
    function index()
    {   
        
        $this->CI =&get_instance();
        $this->CI->output->enable_profiler(TRUE);
        $controlador= strtolower($this->CI->router->class);
        $metodo=strtolower($this->CI->router->method);

        $lista_blanca_controllers = array('con_login');//'con_permiso_usuario'
        if (!in_array($controlador, $lista_blanca_controllers)){
            if ($metodo=="index"){
                if ($this->CI->session->userdata('login')){
                    $this->CI->load->model('mod_login');
                    $data['menu']=$this->CI->mod_login->carga_menu($this->CI->session->userdata('id_tipo_usuario'));
                }
                $this->CI->load->view('view_header',$data);
            }
        }
    }
}
?>
